package com.atguigu.gmall.common.config.pool.properties.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author:ahang
 * @create:2022-10-10 20:15
 * @Description:
 */
@Data
@ConfigurationProperties(prefix = "app.threadpool")
public class AppThreadPoolProperties {

    int corePoolSize = 4;
    int maximumPoolSize = 8;
    long keepAliveTime = 1000*60*5L;  //以s为单位
    int workQueueSize = 1000; //压测来决定,根据自己的内存调整为峰值的2~5倍

}

